package router

import (
	handler "funlog-gserver/handler"
	middlewares "funlog-gserver/middlewares"
)

//InitLog 初始化log路由
func InitLog() {

	v1 := G.Group("/log", middlewares.Cors())
	{
		// v1.Use(middlewares.Cors()) //使用中间件
		// v1.GET("/", handler.LogIndex) //test
		v1.POST("/", handler.LogIndex)

		v1.OPTIONS("/")
	}

}
